#ifndef EDITSAFEDIALOG_H
#define EDITSAFEDIALOG_H

#include <QDialog>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QVBoxLayout>
#include <QFileDialog>
#include <QMessageBox>
#include <QPixmap>
#include <QTextEdit>
#include <QRegularExpression>

class EditSafeDialog : public QDialog
{
    Q_OBJECT
public:
    explicit EditSafeDialog(QWidget *parent = nullptr);

signals:
    void safeUpdated(const QString &originalPassword, const QString &newPassword); // 当用户点击保存时发出信号

private slots:
    void onSaveButtonClicked();

private:
    QLabel *accountLabel;
    QLineEdit *originalPasswordEdit;
    QLineEdit *newPasswordEdit;
    QLineEdit *confirmPasswordEdit;
    QPushButton *saveButton;
};

#endif // EDITSAFEDIALOG_H
